home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.19970326-19970626
/
000215_news@newsmaster….columbia.edu _Mon May 19 09:47:41 1997.msg
< prev
next >
Wrap
Internet Message Format
|
2020-01-01
|
3KB
Return-Path: <news@newsmaster.cc.columbia.edu>
Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id JAA27718
for <kermit.misc@watsun.cc.columbia.edu>; Mon, 19 May 1997 09:47:41 -0400 (EDT)
Received: (from news@localhost)
by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id JAA20884
for kermit.misc@watsun; Mon, 19 May 1997 09:47:41 -0400 (EDT)
Path: news.columbia.edu!panix!news.eecs.umich.edu!news.mathworks.com!howland.erols.net!newsfeed.internetmci.com!news.wwa.com!not-for-mail
From: Jim Jacobus <jjacobus@wwa.com>
Newsgroups: comp.protocols.kermit.misc
Subject: Re: Script Input Error
Date: Mon, 19 May 1997 08:46:40 -0500
Organization: PonyXPress Horse Transport
Lines: 47
Message-ID: <338059C0.409B@wwa.com>
References: <337DC0C3.5D6B@wwa.com> <5lkfi2$48t$1@newsmaster.cc.columbia.edu> <Oohfz4qd5rpS089yn@xmission.com> <337F4817.6DC2@wwa.com> <5lnmd4$sui$1@newsmaster.cc.columbia.edu>
NNTP-Posting-Host: pool7-050.wwa.com
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 3.01 (Win95; I)
Xref: news.columbia.edu comp.protocols.kermit.misc:7053
Frank da Cruz wrote:
>
> In article <337F4817.6DC2@wwa.com>, Jim Jacobus <jjacobus@wwa.com> wrote:
> : Jim Janney wrote:
> : > In article <337DC0C3.5D6B@wwa.com>, Jim Jacobus <jjacobus@wwa.com> wrote:
> : > > I'm trying to write a telnet script using VMS C-kermit 6.0.192 to
> : > > connect to ...
> : > > I can't get a response back from my script. I have an
> : > > "input 5 login:" which should work, but I always get an error from
> : > > my VMS Kermit:
> : > > ? Can't condition line for INPUT
> : > ...
> : > When I changed this to
> : >
> : > set network tcp/ip
> : > set host bix.com
> : > input 5 login
> : >
> : > it started to work as I had intended.
> :
> : ohmygosh! That worked. Thanks. -- Jim
> :
> Right. TELNET xxx means (roughly) "set network tcp/ip, set host xxx, if
> success connect". In other words, TELNET at the Kermit prompt does roughly
> what "telnet" at the system prompt would do.
>
> But scripts do not execute while in CONNECT mode. CONNECT (or TELNET) is
> just another command in the script; the next command is executed after
> Kermit reterns from CONNECT mode. Of course this is documented in the
> manual, which also shows numerous examples of how to write scripts for
> Telnet connections, using SET HOST.
>
> If your script looked like this:
>
> telnet blah
> input 10 login:
>
> then probably what happened is you got the interactive terminal screen,
> saw the login prompt, and then logged out or disconnected. At this point
> Kermit returns to its command processor and executes the INPUT command,
> but at this point the connection has been closed, and hence the message:
>
> ?Can't condition line for INPUT
>
> - Frank
Thanks for clearing that up. That was my error. -- Jim